<admintpl file="header" />
<!-- Bootstrap -->
<link href="http://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">

<link href="__TMPL__Public/assets/css/infomation.css" rel="stylesheet" />
<link href="__PUBLIC__/js/jquery-ui/jquery-ui.min.css" rel="stylesheet" />



</head>
<body>

    <div class="wrap">
        <ul class="nav nav-tabs">
           	<li><a href="{:U('ExecutingWeeklyReport/sg')}">施工周报管理</a></li>
           	<if condition="($level eq '0' OR $level eq '2')">
            	<li><a href="{:U('ExecutingWeeklyReport/sg_add')}">添加施工周报</a></li>
            </if>
            <li class="active"><a href="{:U('ExecutingWeeklyReport/sg_view', array('id'=>I('request.id/s','')))}">查看施工周报</a></li>
        </ul>
        <section class="tab-pane active fade in" id="access">

            <div class="row">
                <div class="col-xs-12 col-md-12 col-lg-12">
                    <div class="panel panel-info">

                        <div class="panel-body">
                            <form class="js-ajax-form form-horizontal form-inline tg" action="" method="post">
                                <div class="text-center">
                                    <h2>
                                        <input type="text" name="company_name" class="input-xt input-longname" style="width:600px; color:#D6D6D6; "  value="{$result.company_name}" />
                                        <p></p>  
                                        <small>施 工 周 报</small>
                                        <small><input type="text" name="report_year" class="input-xt input-num" value="{$result.report_year}" />第(<input type="text" name="code" class="input-xt input-num" value="{$result.code}" />)期</small>
                                    </h2>
                                </div>
                                <div class="row tg-header">
                                    <div class="col-md-12">
                                        <p class="tg-content">
                                            <label>工程名称：</label>
                                            <input type="text" class="input-xt input-deptname" value="{$job_name}" readonly/>
                                        </p>
                                        <p class="tg-content">
                                            <label>施工时间:</label>
                                            <input type="text" name="being_date" id="from" class="input-xt input-name" value="{$result.being_date}" />
                                            -
                                            <input type="text" name="end_date" id="to" class="input-xt input-name" value="{$result.end_date}" />
                                        </p>
                                    </div>
                                </div>
                                <div class="well">
                                    <fieldset>
                                        <ul class="list-unstyled">
                                            <li>
                                                <h5>一、上周相关问题落实和解决情况：</h5>
                                                <div class="tg-content">
                                                    {$result.this_week_problem}
                                                </div>
                                            </li>

                                            <li>
                                                <h5>
                                                    二、本周工程完成情况
                                                </h5>
                                                <div class="tg-content">
                                                    {$result.this_week_summary}
                                                </div>
                                            </li>
                                            <li>
                                                <h5>
                                                    三、本周及下周计划投入劳动力、材料、设备进场情况
                                                </h5>
                                                <!-- Custom Tabs -->
                                                <div class="nav-tabs-custom tab-info">
                                                    <ul class="nav nav-tabs nav-pills">
                                                        <li class="active"><a href="#tab_1" data-toggle="tab">劳动力进场</a></li>
                                                        <li><a href="#tab_2" data-toggle="tab">材料进场</a></li>
                                                        <li><a href="#tab_3" data-toggle="tab">设备进场</a></li>
                                                    </ul>
                                                    <div class="tab-content">
                                                        <div class="tab-pane active" id="tab_1">
                                                            <table class="table table-bordered table-condensed" style="width:50%">
                                                                <thead>
                                                                    <tr>
                                                                        <th>工种</th>
                                                                        <th>本周人数(人)</th>
                                                                        <th>下周人数(人)</th>
                                                                    </tr>
                                                                </thead>
                                                                <tbody>
                                                                    <foreach name="labels1" item="vo">
                                                                        <tr>
                                                                            <td>{$vo.job_name}</td>
                                                                            <td>{$vo.this_week_count}</td>
                                                                            <td>{$vo.next_week_count}</td>
                                                                        </tr>
                                                                    </foreach>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                        <!-- /.tab-pane -->
                                                        <div class="tab-pane" id="tab_2">
                                                            <table class="table table-bordered table-condensed" style="width:50%">
                                                                <thead>
                                                                    <tr>
                                                                        <th>材料类型</th>
                                                                        <th>本周</th>
                                                                        <th>下周</th>
                                                                    </tr>
                                                                </thead>
                                                                <tbody>
                                                                    <foreach name="labels2" item="vo">
                                                                        <tr>
                                                                            <td>{$vo.job_name}</td>
                                                                            <td>{$vo.this_week_count}</td>
                                                                            <td>{$vo.next_week_count}</td>
                                                                        </tr>
                                                                    </foreach>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                        <!-- /.tab-pane -->
                                                        <div class="tab-pane" id="tab_3">
                                                            <table class="table table-bordered table-condensed" style="width:50%">
                                                                <thead>
                                                                    <tr>
                                                                        <th>设备名称</th>
                                                                        <th>本周</th>
                                                                        <th>下周</th>
                                                                    </tr>
                                                                </thead>
                                                                <tbody>
                                                                    <foreach name="labels3" item="vo">
                                                                        <tr>
                                                                            <td>{$vo.job_name}</td>
                                                                            <td>{$vo.this_week_count}</td>
                                                                            <td>{$vo.next_week_count}</td>
                                                                        </tr>
                                                                    </foreach>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                </div>
                                            </li>
                                            <li>
                                                <h5>
                                                    四、进度目标
                                                </h5>
                                                <div class="tg-content">
                                                    {$result.prograss_goal}
                                                </div>
                                            </li>
                                            <li>
                                                <h5>
                                                    五、下周施工计划
                                                </h5>
                                                <div class="tg-content">
                                                    {$result.next_week_plan}
                                                </div>
                                            </li>
                                            <li>
                                                <h5>
                                                    六、需业主协调事宜
                                                </h5>
                                                <div class="tg-content">
                                                    {$result.contractor_problem}
                                                </div>
                                            </li>

                                        </ul>
                                    </fieldset>
                                    <div class="signature">
                                        <p>
                                            {$Complay}
                                        </p>
                                        <p class="signature-date">
                                            <span>{$result.publish_time|substr=0,4}&nbsp;年&nbsp;{$result.publish_time|substr=5,2}月&nbsp;{$result.publish_time|substr=8,2}日</span>                                
                                        </p>
                                    </div>
                                    
                                </div>
                                <div class="form-actions">
                                    <a class="btn btn-default" href="{:U('ExecutingWeeklyReport/sg')}">{:L('BACK')}</a>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>

            </div>

        </section>
    </div>
     <script src="__PUBLIC__/js/common.js"></script>
    <script type="text/javascript">
		$("input").attr("readonly", true);
		$("textarea").attr("readonly", true);
	</script>
</body>
</html>